import router from './router'
// 进度条需要当前页面引入样式才能有效果
import nprogress from 'nprogress'
import 'nprogress/nprogress.css'

// 设置路由鉴权: 即什么条件可以访问
router.beforeEach((to: any, from: any, next: any) => {
  
  nprogress.start()
  next()
})

router.afterEach((to: any, from: any) => {
  nprogress.done()
})
